<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>工作计划追踪系统</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/daisyui/4.12.10/full.min.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="public/css/style.css">
</head>
<body>
    <div class="drawer lg:drawer-open">
        <input id="drawer" type="checkbox" class="drawer-toggle" />
        <div class="drawer-content flex flex-col">
            <!-- 顶部导航栏 -->
            <header class="navbar bg-base-100 shadow-lg lg:hidden">
                <div class="flex-none">
                    <label for="drawer" class="btn btn-square btn-ghost">
                        <i class="fas fa-bars"></i>
                    </label>
                </div>
                <div class="flex-1">
                    <h1 class="text-xl font-bold">工作计划追踪系统</h1>
                </div>
            </header>

            <!-- 主内容区域 -->
            <main class="flex-1 p-4" id="main-content">
                <!-- 页面内容将通过JavaScript动态加载 -->
            </main>
        </div>

        <!-- 左侧导航栏 -->
        <div class="drawer-side">
            <label for="drawer" class="drawer-overlay"></label>
            <aside class="menu p-4 w-80 min-h-full bg-base-200">
                <div class="hidden lg:block mb-8">
                    <h1 class="text-2xl font-bold text-center">工作计划追踪系统</h1>
                </div>
                
                <ul class="menu menu-vertical">
                    <li><a href="#" data-page="work-plan" class="nav-link active">
                        <i class="fas fa-tasks mr-2"></i>工作进度计划
                    </a></li>
                    <li><a href="#" data-page="outsource-list" class="nav-link">
                        <i class="fas fa-list mr-2"></i>外发清单查询
                    </a></li>
                    <li><a href="#" data-page="data-query" class="nav-link">
                        <i class="fas fa-search mr-2"></i>数据查询
                    </a></li>
                    <li><a href="#" data-page="steel-mesh" class="nav-link">
                        <i class="fas fa-th mr-2"></i>钢网追踪
                    </a></li>
                    <li><a href="#" data-page="fixture" class="nav-link">
                        <i class="fas fa-tools mr-2"></i>治具追踪
                    </a></li>
                    <li><a href="#" data-page="sop" class="nav-link">
                        <i class="fas fa-file-alt mr-2"></i>SOP签核追踪
                    </a></li>
                    <li class="divider"></li>
                    <li><a href="#" data-page="import-export" class="nav-link">
                        <i class="fas fa-exchange-alt mr-2"></i>导入导出
                    </a></li>
                </ul>

                <div class="mt-auto pt-4">
                    <button class="btn btn-ghost btn-sm w-full" onclick="checkOverdueItems()">
                        <i class="fas fa-bell mr-2"></i>检查延期工单
                    </button>
                </div>
            </aside>
        </div>
    </div>

    <!-- 模态框容器 -->
    <div id="modal-container"></div>

    <script src="public/js/utils.js"></script>
    <script src="public/js/api.js"></script>
    <script src="public/js/pages/work-plan.js"></script>
    <script src="public/js/pages/outsource-list.js"></script>
    <script src="public/js/pages/data-query.js"></script>
    <script src="public/js/pages/steel-mesh.js"></script>
    <script src="public/js/pages/fixture.js"></script>
    <script src="public/js/pages/sop.js"></script>
    <script src="public/js/pages/import-export.js"></script>
    <script src="public/js/app.js"></script>
</body>
</html>
